package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.DamageListDao;
import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.entity.DamageListGoods;
import com.atguigu.jxc.service.DamageListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class DamageListServiceImpl implements DamageListService {

    @Autowired
    private DamageListDao damageListDao;

    //报损单查询 ：String  sTime（开始时间）, String  eTime（结束时间）
    @Override
    public Map<String, Object> list(String sTime, String eTime) {
        List<DamageList> damageList=damageListDao.list(sTime,eTime);
        Map<String, Object> map=new HashMap<>();
        map.put("rows",damageList);
        return map;
    }


}
